#ifndef _UART_COM_H_
#define _UART_COM_H_

#include "gd32f3x0.h"
#include <string.h>

#define COM_MSG_SIZE    16
#define COM_BUF_SIZE    (1024)
#define COM_PACKET_SIZE (1024 + 16)

extern uint8_t gComMsgBuf[COM_PACKET_SIZE];

void UART_ComStart(void);
void UART_ComSaveByte(uint8_t RcvByte);
void UART_ComProc(void);

#endif
